package com.fortune.cat.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhaozeyang
 * @date 2019/4/23 19:18
 * @description
 */
@AllArgsConstructor
public enum MenuEnum {


    USER("用户管理", "user.html");

    private String name;

    private String url;

    public static Menu createMenu(MenuEnum menuEnum) {
        return new Menu(menuEnum.name, menuEnum.url);
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    private static class Menu {

        private String name;

        private String url;
    }

}
